package com.jieao.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author LWF
 * @Date2021/3/31 18:35
 **/
public class BaseRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 搜索值
     */
    @TableField(exist=false)
    private String searchValue;
    /**
     * 排序列
     */
    @TableField(exist=false)
    private String sortColumns;
    /**
     * 请求参数
     */
    @TableField(exist=false)
    private Map<String, Object> params;

    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }


    public String getSortColumns() {
        return sortColumns;
    }

    public void setSortColumns(String sortColumns) {
        this.sortColumns = sortColumns;
    }
}
